import Vue from 'vue'
import Router from 'vue-router'
import Home from '@/pages/home/Home'
import Commodity from '@/pages/commodity/Commodity'
import JdHome from '@/pages/jdHome/JdHome'
import JdMoney from '@/pages/jdMoney/JdMoney'
import JdIous from '@/pages/jdIous/JdIous'
import JdRalse from '@/pages/jdRalse/JdRalse'

Vue.use(Router)

export default new Router({
  routes: [{
    path: '/',
    name: 'Home',
    component: Home
  },
  {
    path: '/commodity/:id',
    name: 'Commodity',
    component: Commodity
  },
  {
    path: '/JdHome',
    name: 'JdHome',
    component: JdHome
  },
  {
    path: '/JdMoney',
    name: 'JdMoney',
    component: JdMoney
  },
  {
    path: '/JdIous',
    name: 'JdIous',
    component: JdIous
  },
  {
    path: '/JdRalse',
    name: 'JdRalse',
    component: JdRalse
  }]
})